﻿using System;
using System.Collections.Generic;
using LDM.Sys.ServiceAPI.Model.DBModel;
using LDM.Sys.ServiceAPI.Model.ViewModel.Request.AuthorityReq;
using LDM.Sys.ServiceAPI.Model.ViewModel.Response.Authority;
using Microsoft.Extensions.DependencyInjection;
using Model.Models;
using Utility.Domains.Repositories;

namespace LDM.Sys.Repository.Interfaces
{
    /// <summary>
    /// 后台管理用户信息仓储接口
    /// </summary>
    public interface ISysAccountRepository : IBaseRepository<SysAccount>, IScoped
    {
        /// <summary>
        /// 获取后台管理用户信息列表
        /// </summary>
        /// <returns></returns>
        public PageResult<SysAccount> GetSysAccounts(GetSysAccountReq request);


        /// <summary>
        /// 查询后台管理登录
        /// </summary>
        public SysAccount AdminLogin(string userName, string pwd);

        /// <summary>
        /// 查询所有用户简要信息
        /// </summary>
        public IEnumerable<BriefAccountRes> BriefAccounts();
    }
}
